<template>
  <div class="logo">
    <router-link to="/">
      <LogoSvg alt="logo" />
      <h1 v-if="showTitle">{{ title }}</h1>
    </router-link>
  </div>
</template>

<script>
import LogoSvg from "../../assets/logo.svg?inline";
export default {
  name: "Logo",
  components: {
    LogoSvg
  },
  props: {
    title: {
      type: String,
      default: "Future template",
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  }
};
</script>

<style>
.qc-sider.light .logo {
  background: #fff;
  -webkit-box-shadow: 1px 1px 0 0 #e8e8e8;
  box-shadow: 1px 1px 0 0 #e8e8e8;
}

.qc-sider.light .logo h1 {
  color: unset;
}

.qc-sider .logo {
  position: relative;
  height: 64px;
  padding-left: 24px;
  overflow: hidden;
  line-height: 64px;
  background: #002140;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.qc-sider .logo img,
.qc-sider .logo svg,
.qc-sider .logo h1 {
  display: inline-block;
  vertical-align: middle;
}

.qc-sider .logo img,
.qc-sider .logo svg {
  height: 32px;
  width: 32px;
}

.qc-sider .logo h1 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 0 12px;
  font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
  font-weight: 600;
  vertical-align: middle;
}
</style>
